import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_main_info_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/drama_main_info_entity.g.dart';

@JsonSerializable()
class DramaMainInfoEntity {
	int? id = 0;
	@JSONField(name: "chn_id")
	int? chnId = 0;
	int? type = 0;
	String? title = '';
	String? cover = '';
	@JSONField(name: "all_ep")
	int? allEp = 0;
	@JSONField(name: "update_ep")
	int? updateEp = 0;
	@JSONField(name: "charge_sort")
	int? chargeSort = 0;
	@JSONField(name: "is_end")
	int? isEnd = 0;
	String? desc = '';
	int? ctime = 0;
	@JSONField(name: "thumb_cover")
	String? thumbCover = '';
	@JSONField(name: "is_self")
	int? isSelf = 0;
	@JSONField(name: "video_library_id")
	int? videoLibraryId = 0;
	@JSONField(name: "video_library_name")
	String? videoLibraryName = '';
	@JSONField(name: "video_library_code")
	String? videoLibraryCode = '';
	@JSONField(name: "can_cur_pay")
	int? canCurPay = 0;
	@JSONField(name: "can_vip_watch")
	int? canVipWatch = 0;
	@JSONField(name: "can_ad_pay")
	int? canAdPay = 0;
	@JSONField(name: "can_buyout_drama")
	int? canBuyoutDrama = 0;
	@JSONField(name: "buyout_drama_amount")
	double? buyoutDramaAmount = 0;
	@JSONField(name: "buyout_drama_id")
	String? buyoutDramaId = '';

	DramaMainInfoEntity();

	factory DramaMainInfoEntity.fromJson(Map<String, dynamic> json) => $DramaMainInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaMainInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}